//教材章节列表。
Ext.define("ES.view.sections.SectionsList",{
    extend:"Ext.panel.Panel",
    alias:"widget.sectionsTabList",
    closable:true,
    title:"教材章节",
    layout:"border",
    items:[
        {
            region: 'west',
            xtype:"treepanel",
            title:"科目信息",
            split:true,
            width:260, 
            layout:"fit",
            store:"CatalogTreeStore",
            collapsible:true,
            rootVisible:false,
            useArrows:true,
            lines:true,
            animate:true,
            frame:true
        },{
            region: 'center',
            id:"sectionsTabListgridpanel",
            xtype:"gridpanel",
            store:"TeachingSectionsStore",
            selType:"checkboxmodel",
            multiSelect:true,
            frame:true,
            layout:{
                type:"fit",
                align:"stretch"
            },
            sortableColumns:false,
            viewConfig:{
                forceFit:true,
                columnLines:true,
                stripRows:true
            },
            tbar:{
                xtype:"toolbar",
                height:36,
                items:["章节名称：",{
                        xtype:"textfield",
                        width:168
                }," ",{
                        xtype:"button",
                        id:"sectionsTabListbtnQuery",
                        action:"btnQuery",
                        iconCls:'search-trigger-icon',
                        text:"检索",
                        tooltip:"检索数据"
                },"->",{
                        xtype:"button",
                        action:"btnAdd",
                        iconCls:"add-icon",
                        text:"新增",
                        tooltip:"新增数据"
                },"-",{
                        xtype:"button",
                        action:"btnDelete",
                        iconCls:"delete-icon",
                        text:"删除",
                        tooltip:"删除数据"
                }]
            },
            bbar:{
               xtype:"pagingtoolbar",
               store:"TeachingSectionsStore",
               displayInfo:true
            },
            columns:[
                {
                    header:"序号",
                    width:32,
                    align:"right",
                    xtype:"rownumberer"
                },{
                    text:"章节名称",
                    width:168,
                    flex:1,
                    align:"left",
                    menuDisabled:true,
                    sortable:false,
                    dataIndex:"sectionName"
                },{
                    text:"章节全名",
                    width:218,
                    flex:2,
                    align:"left",
                    menuDisabled:true,
                    sortable:false,
                    dataIndex:"fullSectionName"
                },{
                    text:"所属科目名称",
                    width:218,
                    flex:2,
                    align:"left",
                    menuDisabled:true,
                    sortable:false,
                    dataIndex:"fullCatalogName"
                }
            ]
        }]
})